package com.bjsdzk.collector.mapper;

import com.bjsdzk.collector.entity.model.Dictionaries;
import com.bjsdzk.collector.entity.model.ExceColleContr;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.Map;


@Mapper
@Component
public interface DictionariesMapper {
	@Select("SELECT d.id,d.type FROM dictionaries d  where deviceType = #{deviceType}")
	@ResultType(Dictionaries.class)
	@MapKey("id")
	Map<String,Dictionaries > findAll(String deviceType);
}